Integrand size = 26, antiderivative size = 133 \[ \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx=-\frac {b n}{e m x}-\frac {b e^{\frac {d}{e m}} n \left (f x^m\right )^{\frac {1}{m}} \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right ) \left (d+e \log \left (f x^m\right )\right )}{e^2 m^2 x}+\frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x} \]
-b*n/e/m/x-b*exp(d/e/m)*n*(f*x^m)^(1/m)*Ei((-d-e*ln(f*x^m))/e/m)*(d+e*ln(f *x^m))/e^2/m^2/x+exp(d/e/m)*(f*x^m)^(1/m)*Ei((-d-e*ln(f*x^m))/e/m)*(a+b*ln (c*x^n))/e/m/x
Time = 0.09 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.65 \[ \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx=\frac {-b e m n+e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right ) \left (a e m-b d n-b e n \log \left (f x^m\right )+b e m \log \left (c x^n\right )\right )}{e^2 m^2 x} \]
(-(b*e*m*n) + E^(d/(e*m))*(f*x^m)^m^(-1)*ExpIntegralEi[-((d + e*Log[f*x^m] )/(e*m))]*(a*e*m - b*d*n - b*e*n*Log[f*x^m] + b*e*m*Log[c*x^n]))/(e^2*m^2* x)
Time = 0.59 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.06, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2813, 27, 31, 3039, 7281, 7036}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx\) |
\(\Big \downarrow \) 2813 |
\(\displaystyle \frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \left (a+b \log \left (c x^n\right )\right ) \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{e m x}-b n \int \frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{e m x^2}dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \left (a+b \log \left (c x^n\right )\right ) \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{e m x}-\frac {b n e^{\frac {d}{e m}} \int \frac {\left (f x^m\right )^{\frac {1}{m}} \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{x^2}dx}{e m}\) |
\(\Big \downarrow \) 31 |
\(\displaystyle \frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \left (a+b \log \left (c x^n\right )\right ) \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{e m x}-\frac {b n e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \int \frac {\operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{x}dx}{e m x}\) |
\(\Big \downarrow \) 3039 |
\(\displaystyle \frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \left (a+b \log \left (c x^n\right )\right ) \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{e m x}-\frac {b n e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \int \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )d\log \left (f x^m\right )}{e m^2 x}\) |
\(\Big \downarrow \) 7281 |
\(\displaystyle \frac {b n e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \int \operatorname {ExpIntegralEi}\left (-\frac {d}{e m}-\frac {\log \left (f x^m\right )}{m}\right )d\left (-\frac {d}{e m}-\frac {\log \left (f x^m\right )}{m}\right )}{e m x}+\frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \left (a+b \log \left (c x^n\right )\right ) \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{e m x}\) |
\(\Big \downarrow \) 7036 |
\(\displaystyle \frac {e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \left (a+b \log \left (c x^n\right )\right ) \operatorname {ExpIntegralEi}\left (-\frac {d+e \log \left (f x^m\right )}{e m}\right )}{e m x}+\frac {b n e^{\frac {d}{e m}} \left (f x^m\right )^{\frac {1}{m}} \left (\left (-\frac {d}{e m}-\frac {\log \left (f x^m\right )}{m}\right ) \operatorname {ExpIntegralEi}\left (-\frac {d}{e m}-\frac {\log \left (f x^m\right )}{m}\right )-f x^m\right )}{e m x}\) |
(b*E^(d/(e*m))*n*(f*x^m)^m^(-1)*(-(f*x^m) + ExpIntegralEi[-(d/(e*m)) - Log [f*x^m]/m]*(-(d/(e*m)) - Log[f*x^m]/m)))/(e*m*x) + (E^(d/(e*m))*(f*x^m)^m^ (-1)*ExpIntegralEi[-((d + e*Log[f*x^m])/(e*m))]*(a + b*Log[c*x^n]))/(e*m*x )
3.2.74.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[(u_.)*((a_.)*(x_))^(m_.)*((b_.)*(x_)^(i_.))^(p_), x_Symbol] :> Simp[(b* x^i)^p/(a*x)^(i*p) Int[u*(a*x)^(m + i*p), x], x] /; FreeQ[{a, b, i, m, p} , x] && !IntegerQ[p]
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.) + Log[(f_.)*(x_)^(r_ .)]*(e_.))*((g_.)*(x_))^(m_.), x_Symbol] :> With[{u = IntHide[(g*x)^m*(a + b*Log[c*x^n])^p, x]}, Simp[(d + e*Log[f*x^r]) u, x] - Simp[e*r Int[Simp lifyIntegrand[u/x, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, r}, x] && !(EqQ[p, 1] && EqQ[a, 0] && NeQ[d, 0])
Int[u_, x_Symbol] :> With[{lst = FunctionOfLog[Cancel[x*u], x]}, Simp[1/lst [[3]] Subst[Int[lst[[1]], x], x, Log[lst[[2]]]], x] /; !FalseQ[lst]] /; NonsumQ[u]
Int[ExpIntegralEi[(a_.) + (b_.)*(x_)], x_Symbol] :> Simp[(a + b*x)*(ExpInte gralEi[a + b*x]/b), x] - Simp[E^(a + b*x)/b, x] /; FreeQ[{a, b}, x]
Int[u_, x_Symbol] :> With[{lst = FunctionOfLinear[u, x]}, Simp[1/lst[[3]] Subst[Int[lst[[1]], x], x, lst[[2]] + lst[[3]]*x], x] /; !FalseQ[lst]]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 3.40 (sec) , antiderivative size = 2296, normalized size of antiderivative = 17.26
-1/2*(-I*b*Pi*csgn(I*c)*csgn(I*x^n)*csgn(I*c*x^n)+I*b*Pi*csgn(I*c)*csgn(I* c*x^n)^2+I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2-I*b*Pi*csgn(I*c*x^n)^3+2*b*ln( c)+2*a)/e/m/x*(x^m)^(1/m)*f^(1/m)*exp(1/2*(-I*Pi*csgn(I*f)*csgn(I*x^m)*csg n(I*f*x^m)*e+I*Pi*csgn(I*f)*csgn(I*f*x^m)^2*e+I*Pi*csgn(I*x^m)*csgn(I*f*x^ m)^2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+1/2*I*b*n/e/m^2/x*(x^m)^(1/m)*f^(1/m)*exp(1/2*(-I*Pi*csgn(I*f)* csgn(I*x^m)*csgn(I*f*x^m)*e+I*Pi*csgn(I*f)*csgn(I*f*x^m)^2*e+I*Pi*csgn(...
Time = 0.28 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.61 \[ \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx=-\frac {b e m n - {\left (b e m x \log \left (c\right ) - b e n x \log \left (f\right ) + {\left (a e m - b d n\right )} x\right )} e^{\left (\frac {e \log \left (f\right ) + d}{e m}\right )} \operatorname {log\_integral}\left (\frac {e^{\left (-\frac {e \log \left (f\right ) + d}{e m}\right )}}{x}\right )}{e^{2} m^{2} x} \]
-(b*e*m*n - (b*e*m*x*log(c) - b*e*n*x*log(f) + (a*e*m - b*d*n)*x)*e^((e*lo g(f) + d)/(e*m))*log_integral(e^(-(e*log(f) + d)/(e*m))/x))/(e^2*m^2*x)
\[ \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx=\int \frac {a + b \log {\left (c x^{n} \right )}}{x^{2} \left (d + e \log {\left (f x^{m} \right )}\right )}\, dx \]
\[ \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (e \log \left (f x^{m}\right ) + d\right )} x^{2}} \,d x } \]
\[ \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (e \log \left (f x^{m}\right ) + d\right )} x^{2}} \,d x } \]
Timed out. \[ \int \frac {a+b \log \left (c x^n\right )}{x^2 \left (d+e \log \left (f x^m\right )\right )} \, dx=\int \frac {a+b\,\ln \left (c\,x^n\right )}{x^2\,\left (d+e\,\ln \left (f\,x^m\right )\right )} \,d x \]